package com.zhanghu.backendZray.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import org.springframework.cglib.core.Local;

/**
 * <p>
 * 用户token在线状态表
 * </p>
 *
 * @author zhangdong
 * @since 2024-09-05
 */
@Getter
@Setter
@TableName("user_online_token")
public class UserOnlineToken extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户登录token
     */
    private String loginToken;

    /**
     * token过期时间
     */
    private LocalDateTime tokenExpireTime;

    /**
     * 用户在线状态：0 离线；1 在线
     */
    private Boolean onlineStatus;

    /**
     * 在线状态最后一次检测时间
     */
    private LocalDateTime onlineLastCheckTime;

}
